<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/1/7
 * Time: 23:42
 */
namespace app\model;

use think\facade\Db;
use think\Model;

class SuppliesType extends Model
{

    private function _getListField()
    {
        return [
            'st_id' => 'id',
            'st_name' => 'name',
        ];
    }

    public function getSuppliesTypeList()
    {
        $list = Db::table('supplies_type')
            ->where(['st_status'=>1])
            ->field(self::_getListField())
            ->select();
        return $list ?? [];
    }

}